package src.lab01;

public class testfor {
    public static void main(String[] args) {
        int i,sum=0;
      for(i=1;i<=100;i++)
          sum=sum+i;
        System.out.println(sum);
    }

    public static class test04
    {
        public static void main(String[] args) {
            for(int i=1;i<=100;i++)
            {
                System.out.println(i);
                if(i==78)
                {
                    break;
                }

            }
        }
    }
}
